#include "init.h"
#include <stdio.h>
#include <sys/time.h>
long long mcuInitTimeMillis;
long long mcuDeInitTimeMillis;
// 获取当前时间的毫秒表示
long long
getCurrentTimeMillis()
{
    struct timeval tv;
    gettimeofday(&tv, NULL);
    return tv.tv_sec * 1000LL + tv.tv_usec / 1000;
}
void McuRunTimeInit()
{
    mcuInitTimeMillis = getCurrentTimeMillis();
    printf("build time %s %s\n", __DATE__, __TIME__);
}
void McuRunTimeDeInit()
{
    mcuDeInitTimeMillis = getCurrentTimeMillis();
}
void mcuInit(void)
{
    McuRunTimeInit();
}
void mcuDeInit(void)
{
    McuRunTimeDeInit();
}